import request from '@/utils/request'

// 查询营业员管理列表
export function listClerk(query) {
  return request({
    url: '/basic/clerk/list',
    method: 'get',
    params: query
  })
}

// 查询营业员管理详细
export function getClerk(clerkId) {
  return request({
    url: '/basic/clerk/' + clerkId,
    method: 'get'
  })
}

// 新增营业员管理
export function addClerk(data) {
  return request({
    url: '/basic/clerk',
    method: 'post',
    data: data
  })
}

// 修改营业员管理
export function updateClerk(data) {
  return request({
    url: '/basic/clerk',
    method: 'put',
    data: data
  })
}

// 删除营业员管理
export function delClerk(clerkId) {
  return request({
    url: '/basic/clerk/' + clerkId,
    method: 'delete'
  })
}

// 导出营业员管理
export function exportClerk(query) {
  return request({
    url: '/basic/clerk/export',
    method: 'get',
    params: query
  })
}